package com.qcxk.yuqian.system.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qcxk.yuqian.system.entity.Auth;

import java.util.List;

public interface AuthService extends IService<Auth> {
    List<JSONObject> queryAllList(Integer userId);

    List<JSONObject> queryAllList();

    List<JSONObject> queryUserAuthList(Integer userId);

    List<JSONObject> queryRoleAuthList(Integer id);

    boolean addAuth(Auth auth);

    boolean updateAuth(Auth auth);

    List<Auth> getBtnList(Integer userId);
}
